package base

import "xian-codegen/lib/schema"

var (
	// 基础模块配置
	BASE_TABLES_CONFIG map[string]*schema.TableConfigItem
)

func init() {
	BASE_TABLES_CONFIG = map[string]*schema.TableConfigItem{
		"base_usr": {
			Opts: schema.TableOpts{
				Table:               "usr",
				TableComment:        "用户",
				FullTableName:       "base_usr",
				UpperCamelCaseTable: "BaseUsr",
				LblField:            "lbl",
				NoEdit:              false,
				NoList:              false,
				NoAdd:               false,
				NoDelete:            false,
			},
			Columns: []schema.TableColumn{
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "code"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "avatar_img"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "is_ok"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "username"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "password"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "create_usr_id"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "create_usr_id_lbl"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "update_usr_id"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "update_usr_id_lbl"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "delete_usr_id"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "delete_usr_id_lbl"}},
				{ColumnDBSchema: schema.ColumnDBSchema{ColumnName: "delete_time"}},
			},
			// []schema.TableColumn{
			// 	{ColumnName: "lbl", ColumnComment: "名称"},
			// 	{ColumnName: "img", ColumnComment: "头像"},
			// },
		},
	}
}
